<%@page import="entities.User"%>
<%@page import="entities.ItemList"%>
<%@page import="entities.Item"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script src="/myList/js/libJQuery.js"></script>
<script src="/myList/js/functions.js"></script>
<link rel="stylesheet" type="text/css" href="/myList/css/style.css" />
<title>Insert title here</title>
</head>
<body>

	<h1>
		Hi
		<%
		User currentUser = (User) request.getSession().getAttribute("user");
		out.println(currentUser.getLogin());
	%>
		!
	</h1>
	<h2>My lists</h2>
	<div id="lists"></div>
	<div id="displayedList"></div>




	<h2>Create a new List:</h2>
	<table>
		<tr>
			<td>Name</td>
			<td><input type="text" name=name id="listName" /></td>
		</tr>
		<tr>
			<td>Category</td>
			<td><input type="text" name=category id="category" /></td>
		</tr>
	</table>
	<input type="button" value=create
		onclick="createList($('#listName').val(),$('#category').val());$('#listName').val('');$('#category').val('')" />




	<br />
	<a href="/myList/connection?action=logout"><input type=button
		value="Log out" /></a>

</body>
</html>